<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\modules\android_app_versions\models\AndroidAppVersions */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="android-app-versions-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'v_number')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'v_title')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'face_mode')->dropDownList(\common\models\AndroidAppVersions::getFaceMode()) ?>

    <?= $form->field($model, 'update_db')->dropDownList([0 => '0', 1 => '1']) ?>

    <?= $form->field($model, 'update_db_path')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'v_content')->textarea(['rows' => 4]) ?>

    <?= $form->field($model, 'notify')->textarea(['rows' => 4]) ?>

    <?= $form->field($model, 'interview')->textarea(['rows' => 2]) ?>

    <?= $form->field($model, 'other_download_u_ids')->textarea(['rows' => 2]) ?>

    <?= $form->field($model, 'black_user_list')->textarea(['rows' => 2]) ?>

    <?= $form->field($model, 'white_version_list')->textarea(['rows' => 2]) ?>

    <?= $form->field($model, 'is_credit')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'is_evaluate')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'is_doing_order')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'is_query_customer_info')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'is_fave_verify')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'is_sign_information')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'app_download_url')->textInput(['maxlength' => true])->label("自定义app下载地址") ?>

    <?= $form->field($model, 'status')->dropDownList(\common\models\AndroidAppVersions::getStatus()) ?>

  
	<?php if (!Yii::$app->request->isAjax){ ?>
	  	<div class="form-group">
	        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
	    </div>
	<?php } ?>

    <?php ActiveForm::end(); ?>
    
</div>
